import * as types from "./mutation-types"

const mutations = {
  [types.SET_USERINFO] (state, userInfo) {
    state.userInfo = userInfo
  },
  [types.SET_WAGEPAY] (state, wagePay) {
    state.wagePay = wagePay
  },
  //数据中心菜单
  setMenu(state,selectMenu){
    state.selectMenu = selectMenu
  }
  ,
  // 进入数据中心Id
  setProjectId(state,projectId){
    state.userInfo.projectId = projectId
  },
  //项目简称
  setBriefName(state,briefName){
    state.userInfo.briefName = briefName
  },
  setMapFlag(state,mapFlag){
    state.mapFlag = mapFlag
  },
  // 数据中心首页loading
  setLoading(state,loading){
    state.homeLoading = loading
  },
  //数据中心首页数据
  setDataCenterHome(state,data){
    state.dataCenterHome = data
  },
  //数据中心考勤数据
  setDataCenterAttendance(state,data){
    state.dataCenterAttendance = data
  },
  //数据中心考勤数据刷新时间
  setNowTime(state,data){
    state.nowTime = data
  },
  setPointData(state,data){
    state.pointData = data
  },
  setPointPosition(state,data){
    state.pointPosition = data
  }
  
}



export default mutations
